from rest_framework import renderers


class FileRender(renderers.BaseRenderer):
    charset = None
    render_style = 'binary'
    media_type = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
    format = 'xls'

    def render(self, data, accepted_media_type=None, renderer_context=None):
        return data.get('data')
